﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace skags.Models
{
    public class ForumViewModel
    {
        public ForumCategory Category { get; set; }
        public IEnumerable<ThreadViewModel> Threads { get; set; }
    }

    public class ThreadViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid AuthorID { get; set; }
        public int AuthorIntID { get; set; }
        public DateTime DateCreated { get; set; }
        public string ThreadText { get; set; }
        public string UserName { get; set; }
        public int CategoryID { get; set; }
    }


    public class ForumThreadViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid AuthorID { get; set; }
        public DateTime DateCreated { get; set; }
        public string ThreadText { get; set; }
        public int CategoryID { get; set; }
        public string CategoryName { get; set; }
        public string AuthorName { get; set; }
        public IEnumerable<ForumCategory> Categories { get; set; }
        
    }

    public class ForumTablesViewModel
    {
        public IEnumerable<ForumThreadViewModel> Threads { get; set; }
        public IEnumerable<ForumCategory> Categories { get; set; }
    }

    public class ForumThreadFormViewModel
    {
        public ForumThread Thread { get; set; }
        public ForumThreadFormViewModel(ForumThread thread)
        {
            Thread = thread;
        }
        
    }

    public class ForumCatViewModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public System.Guid CreatorID { get; set; }
        public DateTime DateCreated { get; set; }
        public string ThreadText { get; set; }
        public int CategoryID { get; set; }
        public IEnumerable<ForumCategory> Categories { get; set; }
    }


    /*
     * Fyrir Svörin
     */

    public class ForumThreadAnswerViewModel
    {
        public string Title { get; set; }
        public int ThreadID { get; set; }
        public string AuthorName { get; set; }
        public int AuthorID { get; set; }
        public string UserName { get; set; }
        public DateTime DateCreated { get; set; }
        public string CategoryName { get; set; }
        public string ThreadText { get; set; }
        public int CategoryID { get; set; }
        public IEnumerable<AnswerViewModel> Answers { get; set; }
    }

    public class ForumAbuseViewModel
    {
        public ForumThread Thread { get; set; }
        public UserInfo Reader { get; set; }
    }

    public class AnswerViewModel
    {
        public string Answer { get; set; }
        public DateTime DateCreated { get; set; }
        public string FullName { get; set; }
        public string UserName { get; set; }
        public System.Guid UserID { get; set; }
        public int UserIntID { get; set; }
        public int ID { get; set; }
        public string UserRole { get; set; }
        
    }

   

    public class ForumCreateAnswerViewModel
    {
        public string ThTitle { get; set; }
        public int ThreadID { get; set; }
        public string ThAuthor { get; set; }
        public int ThAuthorID { get; set; }
        public DateTime ThDateCreated { get; set; }
        public string CategoryName { get; set; }
        public string ThreadText { get; set; }
        public string AnswerText { get; set; }
        public DateTime AnDateCreated { get; set; }
        public string AnAuthor { get; set; }
        public System.Guid AnAuthorID { get; set; }
    }
}